from flask_sqlalchemy import SQLAlchemy

# 从 __init__.py 中已经创建好的实例进行导入
from project import db


class Student(db.Model):
    Sno = db.Column(db.String(20), primary_key=True)
    Sname = db.Column(db.String(20), nullable=False)
    Ssex = db.Column(db.String(20), nullable=False)
    Sage = db.Column(db.Integer, nullable=False)
    Dno = db.Column(db.String(20), nullable=False)
    Sclass = db.Column(db.String(20))
    address = db.Column(db.String(255))